/*
 * @Date: 2023-02-05 23:15:24
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-11-29 16:51:21
 * @Description:
 */
import { createApp } from 'vue'
import { createPinia } from 'pinia'
// import iviewRegister from './iviewRegister'
import App from './App.vue'
import router from './router/index.ts'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// import './assets/main.less'
import config from './config'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn
})
// 加入可持续化存储插件
import piniaPersist from 'pinia-plugin-persist'
const pinia = createPinia()
pinia.use(piniaPersist)

// iview组件按需引入
// iviewRegister(app)
app.provide('$BaseRequestUrl', 'http://61.129.71.53:9190/scdeap')
app.provide('$Config', config)
app.use(pinia)
app.use(router)
app.mount('#app')
